package com.springboot_experiment_3.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * CSV数据结构
 *
 * @author:HGF
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RegionStats implements Comparable<RegionStats> {
    private String provinceOrState;
    private String countryOrRegion;
    private int latestTotalCases;
    private int diffFromPrevDay;

    @Override
    public int compareTo(RegionStats o) {
        return this.countryOrRegion.compareTo(o.countryOrRegion);
    }
}
